<!DOCTYPE html>
<html>
<head>
  <style>img{ height: 100px; float: left; }</style>
  <script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script>
  <script type="text/javascript" src="js/jquery.js"></script>
  <script type="text/javascript" src="js/syt.js?v20070206.js"></script>
  <script type="text/javascript">
  	
  	var a = 0;
  	
  	var car = function(){
		this.name = "asdayyyyyysd";
		
		this.alertMessage = function(){
			alert(this.name);
		}
		
		this.doContinueActionWithCall = function(sytData,url){
			alert(url)
			url = "http://localhost:8080/SS/syt/action/"+ url +".json"; 
			var func = this;
			$.getJSON(url,sytData,
			function(jsonData) {
				 alert(jsonData);
				 //if(jsonData.stat == "ok"){
				 setTimeout(alertMessage,2000);
				 //} 
			})
		}
		
  	};
  
  	function alertName(){
  		alert("asdasd");
  	}
  
  	function doClick(){
		cc.doContinueActionWithCall(b,"getmessage");
	}
  	
  	var CallFun = function(){};
  	CallFun.prototype = {
  		doContinueActionWithCall:function(sytData,url){
  			var funcArgs = [];
			funcArgs.push(sytData);
			funcArgs.push(url);
			url = "http://localhost:8080/SS/syt/action/"+ url +".json"; 
			var func = this.doContinueActionWithCall;
			$.getJSON(url,sytData,
			function(jsonData) {
			
				 //if(jsonData.stat == "ok"){
				//	 setTimeout(CallFun.alertFun(func,funcArgs),2000);
				 //} 
				  CallFun.alertFun(func,funcArgs);
				 
			})
		},
		name:"ok"
  	}
  	
  	var outName = "asdasd";
  	
  	CallFun.alertFun = function (name,funcArgs){
  		var reCallFunction = function (){
  			name.apply(aa,funcArgs);
  		}
  		
  		setTimeout(reCallFunction,2000);
  		
  	//	aa["doContinueActionWithCall"](b,"getmessage");
  	}
  	
  	var b = {a:"aaa"};
  	var aa = new CallFun();
 	var cc = new car();
  	
  	//var b = {b:"b"};
  	$(function(){
		
		//alertName.apply(cc,[]);
		
		
		aa.doContinueActionWithCall(b,"getmessage");
	})	

	

  </script>
  <body>
  <div id="images"></div>
 
  <a href="http://www.m-mart.com.cn/down_listen/listen_mp3.php?file_name=bXVzaWMxMDAwMDAwMDU2XEF2ZXggSlBPUFxCYXRjaF9BXE1QM1wxMjhCaXRcMDc2OTA5XzAx.mp3" type="audio/mpeg">My first song</a>
   <a href="http://www.m-mart.com.cn/down_listen/listens_mp3.php?file_name=bXVzaWMxMDAwMDAwMDU2XEF2ZXggSlBPUFxCYXRjaF9BXE1QM1wxMjhCaXRcMDc2OTA5XzAx.mp3" type="audio/mpeg">My first song</a>
   
   <a href="http://www.m-mart.com.cn/down_listen/listden_mp3.php?file_name=bXVzaWMxMDAwMDAwMDU2XEF2ZXggSlBPUFxCYXRjaF9BXE1QM1wxMjhCaXRcMDc2OTA5XzAx.mp3" type="audio/mpeg">My first song</a>
    
  <div class="mediaBox">
		<a href="http://mediaplayer.yahoo.com/example1.mp3">First link</a><br/>
		<a href="http://mediaplayer.yahoo.com/example2.mp3">Second link</a><br/>
		<a href="http://mediaplayer.yahoo.com/example3.mp3">Third link</a>
	</div>
  
  
</body>
</html>

